dapper execute with list of ids

65

dapper execute with list of ids -

string sql = "SELECT * FROM SomeTable WHERE id IN @ids"
var results = conn.Query(sql, new { ids = new[] { 1, 2, 3, 4, 5 }});

Comments

Submit
0 Comments